package com.hzlx.consumption.controller;

import com.hzlx.MesMaterialBatchesDto;
import com.hzlx.consumption.feign.MaterialBatchesService;
import com.ruoyi.common.core.web.domain.AjaxResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/equipment")
public class MaterialBatchesController {
    @Autowired
    MaterialBatchesService materialBatchesService;

    /***
     * 远程调用
     */
    @PutMapping("/inventory/batchDtos")
    public AjaxResult editDto(@RequestBody MesMaterialBatchesDto mesMaterialBatchesDto) {
        return materialBatchesService.editDtos(mesMaterialBatchesDto);
    }


}
